package com.handpay.zztong.hp.main.model;

import android.os.Parcel;

import com.handpay.zztong.hp.bean.ResponseBean;

/**
 * @author sxshi on 2017/2/28.
 * @describe:获取交易地理位置
 */

public class TradeAreaBean extends ResponseBean{
    private String locationLat;
    private String locationLng;
    private double areaRadius;

    public String getLocationLat() {
        return locationLat;
    }

    public void setLocationLat(String locationLat) {
        this.locationLat = locationLat;
    }

    public String getLocationLng() {
        return locationLng;
    }

    public void setLocationLng(String locationLng) {
        this.locationLng = locationLng;
    }

    public double getAreaRadius() {
        return areaRadius;
    }

    public void setAreaRadius(double areaRadius) {
        this.areaRadius = areaRadius;
    }

    @Override
    public String toString() {
        return "TradeAreaBean{" +
                "locationLat='" + locationLat + '\'' +
                ", locationLng='" + locationLng + '\'' +
                ", areaRadius=" + areaRadius +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeString(this.locationLat);
        dest.writeString(this.locationLng);
        dest.writeDouble(this.areaRadius);
    }

    public TradeAreaBean() {
    }

    protected TradeAreaBean(Parcel in) {
        super(in);
        this.locationLat = in.readString();
        this.locationLng = in.readString();
        this.areaRadius = in.readDouble();
    }

    public static final Creator<TradeAreaBean> CREATOR = new Creator<TradeAreaBean>() {
        @Override
        public TradeAreaBean createFromParcel(Parcel source) {
            return new TradeAreaBean(source);
        }

        @Override
        public TradeAreaBean[] newArray(int size) {
            return new TradeAreaBean[size];
        }
    };
}
